<?php
namespace Admin\Controller;
use Think\Controller;
class CommonController extends Controller {

    public function __construct(){
        parent::__construct();
        if(!session('uid')){
            $this->error('请先登录系统','Home/Account/Login');
        }
    }
}